@extends('admin/layout/index')

@section('content')
	@if (count($errors) > 0)
	    <div class="mws-form-message error">
	        <ul>
	            @foreach ($errors->all() as $error)
	                <li>{{ $error }}</li>
	            @endforeach
	        </ul>
	    </div>
	@endif
 	<div class="mws-panel grid_8">
	<div class="mws-panel-header">
    	<span>词语过滤添加</span>
    </div>
    <div class="mws-panel-body no-padding">
    	<form class="mws-form" action="/admin/link/doedit" method="post" enctype="multipart/form-data">
    		{{ csrf_field() }}
    		<input type="hidden" name="can" value="?page={{ $_GET['page'] }}&tiao={{ $_GET['tiao'] }}&search={{ $_GET['search'] }}">
    		<input type="hidden" name="id" value="{{ $data['id'] }}">
    		<div class="mws-form-inline">
    			<div class="mws-form-row">
    				<label class="mws-form-label">被词语过滤名称</label>
    				<div class="mws-form-item">
    					<input class="small" type="text" name="oldWord" value="{{ $data['oldWord'] }}">
    				</div>
    			</div>
                <div class="mws-form-row">
                    <label class="mws-form-label">词语过滤名称</label>
                    <div class="mws-form-item">
                        <input class="small" type="text" name="newWord" value="{{ $data['newWord'] }}">
                    </div>
                </div>
	            <div class="mws-form-row">
					<label class="mws-form-label">词语过滤是否开启</label>
					<div class="mws-form-item">
	                	<ul class="mws-form-list">
	                    	<li><input id="gender_male" name="status" class="required" type="radio" value="1" @if ($data['status'] == 1) checked @endif > <label for="gender_male">开启</label></li>
	                    	<li><input id="gender_female" name="status" type="radio" value="2" @if ($data['status'] == 2) checked @endif  > <label for="gender_female">关闭</label></li>
	                    </ul>
	                    <label for="gender" class="error plain" generated="true" style="display:none"></label>
					</div>
				</div>
    		<div class="mws-button-row">
    			<input value="编辑" class="btn btn-danger" type="submit">
    			<input value="重置" class="btn " type="reset" >
    		</div>
    	</form>
    </div>    	
</div>  
@endsection
